from time import sleep
from threading import Thread

tasks=['movie1','movie2','movie3','movie4','movie5','movie6','movie7','movie8','movie9','movie10']

def download(movie):
    print(f'start downloading {movie}')
    sleep(2)
    print(f'finished downloading {movie}')

for task in tasks:
    t=Thread(target=download,args=(task,))
    t.start() #创建线程并启动
